<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="info.nickname" placeholder="用户昵称"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="info.company_user_name" placeholder="绑定二级"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="info.company_code" placeholder="绑定一级"> 
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="info.status" theme="bootstrap" >
                <ui-select-match placeholder="请选择绑定状态">
                    {{$select.selected.label}}
                </ui-select-match>
                <ui-select-choices repeat="statuslist.value as statuslist in statusarr | filter: $select.search">
                    <span ng-bind-html="statuslist.label | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2 col-sm-offset-2">
            <button class="btn btn-block btn-info" ng-click="getlist()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class="col-md-2 text-center">昵称</th>
                    <th class="col-md-1 text-center">头像</th>
                    <th class="col-md-2 text-center">绑定的二级</th>
                    <th class="col-md-2 text-center">绑定的一级</th>
                    <th class="col-md-1 text-center">绑定状态</th>        
                    <th class="col-md-1 text-center">授权时间</th>
                    <th class="col-md-1 text-center">解除/恢复绑定时间</th>
                    <th class="col-md-2 text-center">解绑(开)/恢复(关)</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in objs">
                    <td class="text-center">{{obj.nickname}}</td>
                    <td class="text-center">
                        <img ng-src="{{obj.headimgurl}}" class="" style="border-radius:100px" width="50px" height="50px">
                    </td>
                    <td class="text-center">{{obj.company_user_name}}</td>
                    <td class="text-center">{{obj.company_code}}</td>
                    <td class="text-center">
                        <p class="" ng-show="obj.status == '1'">已绑定</p>
                        <p class="" ng-show="obj.status == '0'">已解绑</p>
                    </td>
                    <td class="text-center">{{obj.create_time}}</td>
                    <td class="text-center">{{obj.update_time}}</td>
                    <td class="">
                        <label class="i-switch bg-success" ng-init="obj.isSelected" style="margin-left:40%" >
                            <input type="checkbox" ng-model="obj.isSelected" id= "swifkda" ng-change="onChange(obj.isSelected, obj.user_id, obj.company_user_name, obj.status)">
                            <i></i>
                        </label>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>
        
